import java.io.File;
import java.io.IOException;
import java.io.FileReader;
import java.io.BufferedReader;
import java.util.Scanner;


public class Help {

	private static final String FILE_NAME = "help.txt";
	private static File helpFile = null;
	
	private static void openFile() {
		helpFile = new File(FILE_NAME);
		// mark helpFile as read only
		//helpFile.setReadOnly();
	}

	public static String getHelp() throws IOException {
		StringBuilder fileContents = null;
		Scanner scanner = null;
		try {
			openFile();
			fileContents = new StringBuilder((int) helpFile.length());
			scanner = new Scanner(new BufferedReader(new FileReader(helpFile)));
			String lineSeparator = "\n";
		
			while(scanner.hasNextLine()) {	
				fileContents.append(scanner.nextLine()).append(lineSeparator);
			}
			
			
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			scanner.close();
		}
		
		return fileContents.toString();
	}

	//public static void main(String args[]) throws IOException{
		//String str = getHelp();
		//System.out.println(str);
	//}
}